home *** CD-ROM | disk | FTP | other *** search
- Path: jupiter.planet.net!usenet
- From: ajs@planet.net (A.J. Saveriano)
- Newsgroups: comp.lang.c++,comp.os.msdos.programmer
- Subject: MSVC++ linking trouble
- Date: Fri, 05 Apr 1996 14:54:27 GMT
- Organization: Planet Access Networks - Stanhope, NJ
- Message-ID: <4k3c49$gi4@jupiter.planet.net>
- NNTP-Posting-Host: stan47.planet.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- // This code will compile with no errors but when it tries to link
- // I receive the following error message:
- // error L2029: 'int _far _cdecl system(char _near*)' : unresolved
- external
- // I have also tried using process.h instead of stdlib.h but I get the
- same error
- // I have checked to be certian the directory paths of my include
- files are
- // where they should be. All seems ok.
- // I am using Microsoft Visual C++ version 1.00 (installed from CDROM)
- // and am running under Windows 95.
- // Any help would be most appreciated.
- // All this code is suppose to do is give me a directory listing.
- // It is simply an exercise in using the SYSTEM function.
-
- #include <stdlib.h>
- system(char *); // prototype the function
- void main( void )
- {
- system( "dir" );
- }
-
-
-